<?php
//include './common/home.php';
include './head.php';
include './num_one.php';
//include './num_two.php';
include './tail.php';
include './bottom.php';

//详细代码
/*
include './common/home.php';
$title  = '丁江的论坛';
$table  = DB_TABLE_CG;
$fields = 'classname';
$where  = 'where parentid=0 order by orderby';
$data0   = select($link,$table,$fields,$where);
//var_dump($bigdata);

$VIP  	= 0 ;
$username  = '待定';
$loginAfter = false;
$motifcount = 0 ;
$var1 = compact('title','data0','username','motifcount','VIP','loginAfter');
display('head.html',$var1);


//num_oneFile
$table  = DB_TABLE_CG;
$fields = 'classname';
//获取大板块
$where  = 'where parentid=0 and orderby=1';		//多个条件锁定
$data0   = select($link,$table,$fields,$where);
//获取小版块
$where  = 'where parentid=1';
$data   = select($link,$table,$fields,$where);
//var_dump($data);

$compere = 'tessttt00000';
$Ctime   = date('Y-m-d H:m:s',time());

//var_dump($compere);
$vars = compact('title','data0','data','compere','Ctime');
display('num_one.html',$vars);



//num_twoFile

$title  = '丁江的论坛';
$table  = DB_TABLE_CG;
$fields = 'classname';

//获取大板块
$where  = 'where parentid=0 and orderby=2';		//多个条件锁定
$data0   = select($link,$table,$fields,$where);
//获取小版块
$where  = ' where parentid=2';
$data   = select($link,$table,$fields,$where);

//var_dump($data);
$compere = 'tessttt00000';
$Ctime   = date('Y-m-d H:m:s',time());

$vars = compact('title','data0','data','compere','Ctime');
display('num_two.html',$vars);



//tail部分
$table  = DB_TABLE_LINK;
$fields = 'name';

$where  = 'where lid=1';
$data1   = select($link,$table,$fields,$where);
//var_dump($data1);

$where  = 'order by displayorder desc';
$data   = select($link,$table,$fields,$where);

//var_dump($data);

$vars = compact('title','data','data1');
display('tail.html',$vars);



//bottom部分

$web = 'phpxy';
$vars = compact('title','web');
display('bottom.html',$vars);

*/
